package com.rnkrsoft.suyan.config.server.system.entity;

import com.rnkrsoft.framework.orm.PrimaryKey;
import com.rnkrsoft.framework.orm.PrimaryKeyStrategy;
import com.rnkrsoft.framework.orm.jdbc.*;
import lombok.*;

import java.io.Serializable;

/**
 * rnkrsoft.com 框架自动生成!
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Table(name = "RESOURCE", prefix = "TB", suffix = "INFO")
@Comment("资源表")
public class ResourceEntity extends BaseEntity implements Serializable {
    @PrimaryKey(strategy = PrimaryKeyStrategy.IDENTITY)
    @Comment("资源主键")
    @NumberColumn(name = "RESOURCE_ID", nullable = false, type = NumberType.INTEGER)
    Integer resourceId;

    @Comment("资源名称")
    @StringColumn(name = "RESOURCE_NAME", nullable = true, type = StringType.VARCHAR)
    String roleName;

}
